<template>
	<view class="home-box">
		<view class="head">
			<view class="head-name">商家中心</view>
			<view class="head-go" v-if="isHasStore==false" @click="toOpenStore">商家入驻</view>
		</view>

		<!-- 今日收款 -->
		<view class="day-plate">
			<view class="top-header" @click="toPageB('day')">
				<text>今日收款</text>
				<text class="arrow-right"></text>
			</view>
			<view class="top-num-box" @click="toPageB('day')">
				<view class="top-num">
					<text class="main">{{money_split(todayIncome).main}}</text>
					<text class="sub">.{{money_split(todayIncome).sub}}</text>
					<text class="tip">元，共 {{dayTotalCount}} 笔</text>
				</view>
			</view>
			<hr class="top-line" />
			<view class="func-box">
				<view class="item" @click="toPage('/pages/user/cashPayUrl')">
					<view class="icon">
						<image src="https://test8.w-run.net/iqiao/icons/home_skm.svg" mode="aspectFill"></image>
					</view>
					<view class="text">
						收款码
					</view>
				</view>
				<view class="item" @click="toPage('/pages/user/quick-collection')">
					<view class="icon">
						<image src="https://test8.w-run.net/iqiao/icons/home_kjsk.svg" mode="aspectFill"></image>
					</view>
					<view class="text">
						快捷收款
					</view>
				</view>
				<view class="item" @click="toPage('/pages/user/bill')">
					<view class="icon">
						<image src="https://test8.w-run.net/iqiao/icons/home_ddls.svg" mode="aspectFill"></image>
					</view>
					<view class="text">
						订单流水
					</view>
				</view>
				<view class="item" @click="toPage('/pages/user/toBill')">
					<view class="icon">
						<image src="https://test8.w-run.net/iqiao/icons/home_dz.svg" mode="aspectFill"></image>
					</view>
					<view class="text">
						对账
					</view>
				</view>
			</view>
		</view>
		<!-- <view class="day-plate">
			<!-- <u--image :src="shopMallImgUrl+'Collection_bg.png'" width="690rpx" height="148rpx" class="pay-icon"></u--image> --
			<view class="day-plate-inbox">
				<view class="day-item" @click="toPageB('day')">
					<view class="day-item-dd">
						今日收款（元）<u-icon name="arrow-right" size="12" color="#fff"></u-icon>
					</view>
					<view class="day-item-big">
						{{ todayIncome }}
					</view>
				</view>
				<view class="day-item-other">
					<view class="day-item-title">
						交易笔数
					</view>
					<view class="day-item-content">
						{{dayTotalCount}}
					</view>
				</view>
				<view class="day-item-other">
					<view class="day-item-title">
						粉丝
					</view>
					<view class="day-item-content">
						{{fansCount}}
					</view>
				</view>
			</view>
			
		</view> -->
		<!-- <view class="month-plate">
			<view class="month-left-box">
				<u--image src="https://test8.w-run.net/iqiao/current_bg.png" width="334rpx" class="month_curr_bg" height="272rpx"></u--image>
				<view class="month-plate-left">
					<view class="month-left-top">
						<view class="month-left-top-title" @click="toPageB('month')">当月收款（元）<u-icon name="arrow-right"
								size="12"></u-icon></view>
						<view class="month-left-top-content">{{currentMonthTotalAmount}}</view>
					</view>
					<view class="month-left-bottom">当月交易笔数：{{currentMonthTotalCount}}</view>
				</view>
			</view>

			<view class="month-right-box">
				<u--image src="https://test8.w-run.net/iqiao/current_bg.png" width="334rpx" class="month_curr_bg" height="272rpx"></u--image>
				<view class="month-plate-right">
					<view class="month-right-title" @click="toPage('/pages/user/bill')">最新交易<u-icon name="arrow-right"
							size="12"></u-icon></view>
					<view class="month-right-content" v-if="latestTransactions.length!=0">
						<view class="month-right-content-dd" v-for="(item,index) in latestTransactions" :key="index">
							<view class="dd-icon">
								<u--image :src="shopMallImgUrl+'pay_zfb.png'" width="32rpx" class="pay-icon"
									height="32rpx" v-if="item.payType=='020'"></u--image>
								<u--image :src="shopMallImgUrl+'pay_wx.png'" width="32rpx" class="pay-icon"
									height="32rpx" v-if="item.payType=='010'"></u--image>
								<u--image :src="shopMallImgUrl+'pay_lq.png'" width="32rpx" class="pay-icon"
									height="32rpx" v-if="item.payType=='110'"></u--image>
							</view>
							<view class="dd-cont">
								<view class="dd-cont-text">+{{item.totalAmount.toFixed(2)}}</view>
								<view class="dd-cont-text-day" v-if="item.totalCount!=0">
									{{item.payTime.substring(5,10)}}
								</view>
							</view>
						</view>
					</view>
					<view class="month-right-content" v-else>
						<view class="tip">暂无交易</view>
					</view>
				</view>
			</view>

		</view> -->
		<!-- <view class="payment-plate">
			<view class="title-plate">
				收款服务
			</view>
			<view class="payment-plate-content">
				<view class="payment-plate-item" @click="toPage('/pages/user/cashPayUrl')">
					<view class="payment-item-left">
						<u--image :src="shopMallImgUrl+'new_serve_1.png'" width="80rpx" class="pay-icon"
							height="80rpx"></u--image>
					</view>
					<view class="payment-item-right">
						<view class="item-right-title">
							收款码
						</view>
						<view class="item-right-subtitle">
							点击打开收款码
						</view>
					</view>
				</view>
				<view class="payment-plate-item" @click="toPage('/pages/user/quick-collection')">
					<view class="payment-item-left">
						<u--image :src="shopMallImgUrl+'new_serve_2.png'" width="80rpx" class="pay-icon"
							height="80rpx"></u--image>
					</view>
					<view class="payment-item-right">
						<view class="item-right-title">
							快捷收款
						</view>
						<view class="item-right-subtitle">
							收款更方便快捷
						</view>
					</view>
				</view>

				<view class="payment-plate-item" @click="toPage('/pages/user/bill')">
					<view class="payment-item-left">
						<u--image :src="shopMallImgUrl+'new_serve_3.png'" width="80rpx" class="pay-icon"
							height="80rpx"></u--image>
					</view>
					<view class="payment-item-right">
						<view class="item-right-title">
							订单流水
						</view>
						<view class="item-right-subtitle">
							商家订单流水
						</view>
					</view>
				</view>
				<view class="payment-plate-item" @click="toPage('/pages/user/toBill')">
					<view class="payment-item-left">
						<u--image :src="shopMallImgUrl+'new_serve_4.png'" width="80rpx" class="pay-icon"
							height="80rpx"></u--image>
					</view>
					<view class="payment-item-right">
						<view class="item-right-title">
							对账
						</view>
						<view class="item-right-subtitle">
							商家对账
						</view>
					</view>
				</view>
			</view>

		</view> -->

		<!-- 当月收款 -->
		<view class="month-plate">
			<view class="item" @click="toPageB('month')">
				<view class="box-header">
					<text class="title">当月收款（元）</text>
					<text class="arrow-right black"></text>
				</view>
				<view class="num">
					{{currentMonthTotalAmount}}
				</view>
			</view>
			<view class="item" @click="toPageB('month')">
				<view class="box-header">
					<text class="title">当月交易笔数</text>
					<text class="arrow-right black"></text>
				</view>
				<view class="num">
					{{currentMonthTotalCount}}
				</view>
			</view>
		</view>
		
		<!-- 轮播图 -->
		<view class="c-volume2">
			<u-swiper :list="list3" indicator indicatorMode="line" circular imgMode="widthFill" height="110px"
				style="border-radius: 8px;"></u-swiper>
		</view>


		<!-- 消息盒子 -->
		<view class="message-box">
			<view class="msg-list" v-if="latestTransactions.length!=0" @click="toPage('/pages/user/bill')">
				<view class="msg-item" v-for="(item,index) in latestTransactions.slice(0,2)" :key="index">
					<text class="icon">
						<u--image :src="shopMallImgUrl+'pay_zfb.png'" width="32rpx" class="pay-icon" height="32rpx"
							v-if="item.payType=='020'"></u--image>
						<u--image :src="shopMallImgUrl+'pay_wx.png'" width="32rpx" class="pay-icon" height="32rpx"
							v-if="item.payType=='010'"></u--image>
						<u--image :src="shopMallImgUrl+'pay_lq.png'" width="32rpx" class="pay-icon" height="32rpx"
							v-if="item.payType=='110'"></u--image>
					</text>
					<text class="desc">
						<text v-if="item.payType=='020'">支付宝</text>
						<text v-if="item.payType=='010'">微信</text>
						<text v-if="item.payType=='110'">现金</text>
						<text class="text">收款到账 {{item.totalAmount.toFixed(2)}} 元</text>
						<text class="date" v-if="item.totalCount!=0">
							{{item.payTime.substring(5,10)}}
						</text>
					</text>
				</view>
			</view>
			<view class="msg-none" v-else>
				<view class="tip">暂无交易</view>
			</view>
		</view>

		<!-- 店铺服务 -->
		<view class="store-plate">
			<view class="title-plate">
				店铺服务
			</view>
			<view class="zone-box">
				<view class="zone-item" @click="toJumpPage('/pages/storeManage/my-store')">
					<image :src="shopMallImgUrl+'store-bg-left.png'" class="s_bg"></image>
					<view class="zone-item-content">
						<view class="zone-item-title">店铺管理</view>
						<view class="zone-item-subtitle">管理店铺信息</view>
					</view>
				</view>
				<view class="zone-item" @click="toJumpPage('/pages/storeGift/giftSetList')">
					<image :src="shopMallImgUrl+'store-bg-right.png'" class="s_bg"></image>
					<view class="zone-item-content">
						<view class="zone-item-title">开店福利</view>
						<view class="zone-item-subtitle">开启分账订单</view>
					</view>
				</view>
			</view>
		</view>
		
		<view style="height: 20px;"></view>
		
		<u-popup :show="showPop" mode="center" :round="10" :safeAreaInsetBottom="false">
			<view class="storeTip">
				<view class="title">提示</view>
				<view class="word">店铺未开通支付功能</view>
				<view class="btn-box">
					<view class="cancel" @tap="cancelPop">取消</view>
					<view class="gotoOpen" @tap="gotoPage">去开通支付</view>
				</view>
			</view>
		</u-popup>

	</view>
</template>

<script>
	import {
		shopMallImgUrl
	} from "@/common/config.js"
	import {
		getStoreData,
		setStoreData,
		httpPost,
		httpGet
	} from "@/utils/http.js";
	import {
		money_split
	} from "@/utils/money_split";
	const tab1 = require(`@/img/home/tab1.png`);
	const tab2 = require(`@/img/home/tab2.png`);
	const tab3 = require(`@/img/home/tab3.png`);
	const tab4 = require(`@/img/home/tab4.png`);
	const tab5 = require(`@/img/home/tab5.png`);

	const c1 = require(`@/img/home/c1.png`);
	const c2 = require(`@/img/home/c2.png`);
	const c3 = require(`@/img/home/c3.png`);
	const c4 = require(`@/img/home/c4.png`);
	const c5 = require(`@/img/home/c5.png`);
	const c6 = require(`@/img/home/c6.png`);
	const c7 = require(`@/img/home/c7.png`);
	const c8 = require(`@/img/home/c8.png`);
	const c9 = require(`@/img/home/c9.png`);
	const c10 = require(`@/img/home/c10.png`);

	const banner1 = require(`@/img/home/banner1.jpg`);
	const banner2 = require(`@/img/home/banner2.jpg`);
	const banner3 = require(`@/img/home/banner3.png`);
	const banner4 = require(`@/img/home/banner4.jpg`);
	export default {
		data() {
			return {
				todayIncome: "0.00",
				todayIncome2: "0.00",
				scrollTop: -1,
				activeViewId: "top-box",
				list3: [banner1, banner2, banner3, banner4],
				c1,
				c2,
				c3,
				c4,
				c5,
				c6,
				c7,
				c8,
				c9,
				c10,
				tab1,
				tab2,
				tab3,
				tab4,
				tab5,
				textArr: [
					// "商家入驻：潮州牛肉火锅店1",
				],
				list2: [
					// {
					//   name: "c1",
					//   title: "流量广告",
					//   routeUrl: "/pages/advertise/indexPage",
					// },
					{
						name: "c2",
						title: "店铺管理",
						routeUrl: "/pages/storeManage/my-store",
					},
					{
						name: "c3",
						title: "签约管理",
						routeUrl: "/pages/contractManage/contractList",
					},
					{
						name: "c4",
						title: "卡包",
						routeUrl: "/pages/index/integralCode",
					},
					{
						name: "c5",
						title: "本地生活",
						routeUrl: "/pages/o2o/index",
					},
					{
						name: "c6",
						title: "开店礼包",
						routeUrl: "/pages/storeGift/giftSetList",
					},
					{
						name: "c7",
						title: "柜员管理",
						routeUrl: "/pages/employeeManage/employeeList",
					},
					{
						name: "c8",
						title: "门店对账",
						routeUrl: "/pages/storeReconciliation/reconciliationList",
					},
					{
						name: "c9",
						title: "柜员登录",
						routeUrl: "/pages/employeeManage/counterLogin",
					}
					// {
					//   name: "c10",
					//   title: "帮助中心",
					//   routeUrl: "/pagesB/pages/index/integralCode",
					// },
				],
				list: [{
						name: "tab3",
						title: "收款码",
						routeUrl: "/pages/user/cashPayUrl",
					},
					{
						name: "tab1",
						title: "积分码",
						routeUrl: "/pages/user/integralCode",
					},
					{
						name: "tab2",
						title: "快捷收款",
						routeUrl: "/pages/user/quick-collection",
					},
					{
						name: "tab4",
						title: "订单流水",
						routeUrl: "/pages/user/bill",
					},
					{
						name: "tab5",
						title: "对账",
						routeUrl: "/pages/user/toBill",
					},
				],
				isiPhoneX: false,
				storeStatus: null, //10申请中，12店铺通过但没有进件，15第三方银行审核中，20审核通过，30审核失败，40审核店铺违规
				isHasStore: false,
				showPop: false,
				fansCount: 0,
				dayTotalCount: 0, //当天交易笔数
				currentMonthTotalCount: 0, //当月交易笔数
				currentMonthTotalAmount: 0, //当月交易额
				latestTransactions: [],
				shopMallImgUrl: shopMallImgUrl,
				money_split
			};
		},
		onShow() {
			const token = getStoreData("token");
			const phone = getStoreData("phone");

			if (!token || !phone) {
				wx.redirectTo({
					url: "index"
				});
			} else {
				this.isiPhoneX = getStoreData("isiPhoneX") || false;
				this.getstoreInfo();
				this.getTodayIncome();
				this.getTodayStoreIncome();
			}
		},
		onLoad() {
			// 010  微信
			// 020  支付宝
			// 110  银联

		},
		methods: {
			getMarketDay(storeId) { //当天交易笔数
				const that = this;
				const date = new Date();
				const year = date.getFullYear();
				const month = date.getMonth() + 1; // 月份是从0开始的，所以需要+1
				const day = date.getDate();
				const today = `${year}-${month < 10 ? '0' + month : month}-${day < 10 ? '0' + day : day}`;
				const startTime = today + ' 00:00:00';
				const endTime = today + ' 23:59:59';

				httpGet("/api/orderform/outline/sumStoreOutlinePay?storeId=" + storeId + "&startTime=" + startTime +
						"&endTime=" + endTime)
					.then((res) => {
						console.log(res)
						that.dayTotalCount = res.data.totalCount || 0;
					})
					.catch((e) => {});

			},
			getMarketMonth(storeId) { //当月收入
				const that = this;
				const date = new Date();
				const year = date.getFullYear();
				const month = date.getMonth() + 1; // 月份是从0开始的，所以需要+1
				const dateTwo = new Date(year, month, 0);
				const lastDay = dateTwo.getDate();
				const currentMonth = `${year}-${month < 10 ? '0' + month : month}`;
				const startTime = currentMonth + '-01 00:00:00';
				const endTime = currentMonth + '-' + lastDay + ' 23:59:59';
				console.log(startTime, endTime)
				httpGet("/api/orderform/outline/sumStoreOutlinePay?storeId=" + storeId + "&startTime=" + startTime +
						"&endTime=" + endTime)
					.then((res) => {
						that.currentMonthTotalCount = res.data.totalCount || 0;
						that.currentMonthTotalAmount = res.data.totalAmount || 0;
					})
					.catch((e) => {});
			},

			getInfor() {
				const _this = this;
				httpGet("/api/info/laterStoreAndStartUserNotice")
					.then((res) => {
						_this.textArr = res.data.map((i) => {
							return i.title + "：" + i.content;
						});
					})
					.catch((e) => {});
			},
			toPage(v) {
				if (this.isHasStore) {
					uni.navigateTo({
						url: v,
					});
				} else {
					uni.navigateTo({
						url: '/pages/storeManage/my-store',
					});
				}
			},
			toJumpPage(routeUrl) {
				if (this.isHasStore) {
					if (this.storeStatus == 10) {
						uni.$u.toast("店铺申请审核中");
						return
					} else if (this.storeStatus == 12) {
						this.showPop = true;
						return
					} else if (this.storeStatus == 15) {
						uni.$u.toast("第三方银行审核中，请耐心等待");
						return
					} else if (this.storeStatus == 20) {
						uni.navigateTo({
							url: routeUrl,
						});
						return
					} else if (this.storeStatus == 30 || this.storeStatus == 40) {
						uni.navigateTo({
							url: '/pages/storeManage/my-store',
						});
					}
				} else { //没有店铺，跳转申请开店
					uni.navigateTo({
						url: '/pages/storeManage/my-store',
					});
					return
				}
			},
			getstoreInfo() {
				let that = this;
				httpGet("/api/sellerstore/selfInfo")
					.then((res) => {
						if (!res.data) {
							that.isHasStore = false;
						} else {
							that.isHasStore = true;
							that.storeStatus = res.data.storeStatus;
							that.fansCount = res.data.fansCount;
							that.getMarketDay(res.data.id);
							that.getMarketMonth(res.data.id);
							that.getDifferentPay(res.data.id);
						}
					})
					.catch((e) => {});
			},
			getDifferentPay(storeId) {
				let that = this;
				httpGet("/api/orderform/outline/staticStoreOutlinePayByPayType?storeId=" + storeId)
					.then((res) => {
						if (res.data && res.data.length > 0) {
							that.latestTransactions = res.data.reverse();
						}


					})
					.catch((e) => {});
			},
			toPageB(type) {
				uni.navigateTo({
					url: "/pages/user/todayIncome?type=" + type
				});
			},
			getTodayStoreIncome() {
				const _this = this;
				httpGet("/api/sellerstore/todayIncomeByLeading")
					.then((res) => {
						_this.todayIncome2 = (res.data && res.data.totalFee) || "0.00";
					})
					.catch((e) => {
						_this.todayIncome2 = "0.00";
					});
			},
			getTodayIncome() {
				const _this = this;
				httpGet("/api/sellerstore/todayIncome")
					.then((res) => {
						_this.todayIncome = (res.data && res.data.totalFee) || "0.00";
					})
					.catch((e) => {
						_this.todayIncome = "0.00";
					});
			},
			scroll(e) {
				//
			},
			onReachBottom() {
				//
			},
			getPic(name) {
				return this[name];
			},
			cancelPop() {
				this.showPop = false;
			},
			gotoPage() {
				uni.navigateTo({
					url: '/pages/storeManage/creat-store',
				});
				this.showPop = false;
			},
			toOpenStore() {
				uni.navigateTo({
					url: '/pages/storeManage/my-store',
				});
			}
		},
	};
</script>

<style lang="scss">
	@import "./home.scss";

	.storeTip {
		width: 600rpx;
		padding-top: 40rpx;
		padding-bottom: 40rpx;

		.title {
			text-align: center;
			font-size: 40rpx;
		}

		.word {
			text-align: center;
			font-size: 28rpx;
			padding-top: 40rpx;
			padding-bottom: 40rpx;
		}

		.btn-box {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			text-align: center;
			font-size: 24rpx;
			border-top: 1rpx solid #eee;
			padding-top: 20rpx;

			.cancel {
				width: 50%;
				color: #f72222;
			}

			.gotoOpen {
				width: 50%;
				color: #11baef;
			}
		}
	}

	.container {
		width: 280px;
		height: 280px;
		margin: 38% auto;
	}

	/*.day-plate {
		margin-left: 30rpx;
		margin-right: 30rpx;
		border-radius: 10rpx;
		position: relative;
		background: linear-gradient(to right,#EF684B,#FE9357);
		padding: 30rpx;
		
        .day-plate-inbox{
			
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			// position: absolute;
			// top:26rpx;
			// width: 630rpx;
			// left: 30rpx;
		}
		.day-item {
			// color: #fff;

			.day-item-dd {
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				font-size: 24rpx;
				margin-bottom: 10rpx;
				color: #fff;
			}

			.day-item-big {
				font-size: 48rpx;
				font-weight: bold;
				color: #fff;
			}
		}

		.day-item-other {
			.day-item-title {
				font-size: 24rpx;
				color: #f3cfc7;
				margin-bottom: 20rpx;
			}

			.day-item-content {
				font-size: 32rpx;
				font-weight: bold;
				color: #fff;
			}
		}
	}*/

	.day-plate {
		background: linear-gradient(90deg, #FE5757, #FE9357 );
		margin: 0 30rpx 30rpx;
		position: relative;
		overflow: hidden;
		box-shadow: 6rpx 6rpx 30rpx rgba(0, 0, 0, 0.15);
		border-radius: 16rpx;
		color: #fff;
		padding: 40rpx 40rpx 10rpx;
		height: fit-content;

		&::after {
			content: "";
			display: block;
			position: absolute;
			width: 240rpx;
			height: 240rpx;
			background: url(https://test8.w-run.net/iqiao/bg_day_plate.svg) no-repeat center / cover;
			right: -10px;
			top: 20rpx;
		}

		.top-header {
			font-size: 34rpx;

			// font-weight: bold;
			.arrow-right {
				opacity: .75;
			}

			margin-bottom: 20rpx;
		}

		.top-num-box {
			display: flex;
			margin-bottom: 20rpx;

			.top-num {
				.main {
					font-size: 96rpx;
					font-weight: bold;
				}

				.sub {
					font-size: 64rpx;
					font-weight: bold;
				}

				.tip {
					font-size: 32rpx;
					margin-left: .5em;
				}
			}
		}

		.top-line {
			border: 0;
			border-bottom: 1px solid #f1b6a8;
			margin: 0;
			margin-bottom: 30rpx;
		}

		.func-box {
			display: flex;
			margin-top: 20rpx;
			margin-bottom: 30rpx;

			.item {
				flex: 1;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				gap: 16rpx;
				transition: .2s;

				&:active {
					filter: brightness(90%);
				}

				.icon {
					width: 96rpx;
					height: 96rpx;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					background: #FFE9CD;
					border-radius: 999px;

					image {
						width: 54rpx;
						height: 54rpx;
					}
				}

				.text {
					font-size: 24rpx;
				}
			}
		}
	}

	/* .month-plate {
		margin-left: 30rpx;
		margin-right: 30rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-top: 20rpx;

		.month_curr_bg {
			border-radius: 10rpx;
		}

		.month-left-box {

			position: relative;
			border-radius: 10rpx;
		}

		.month-right-box {
			position: relative;
			border-radius: 10rpx;
		}

		.month-plate-left {
			position: absolute;
			z-index: 100;
			top: 30rpx;
			left: 30rpx;
			width: 274rpx;

			.month-left-top {
				.month-left-top-title {
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					font-size: 24rpx;
					margin-bottom: 10rpx;
				}

				.month-left-top-content {
					font-size: 48rpx;
					font-weight: bold;
				}
			}

			.month-left-bottom {
				font-size: 24rpx;
				margin-top: 60rpx;
			}
		}

		.month-plate-right {
			position: absolute;
			z-index: 100;
			top: 30rpx;
			left: 30rpx;
			width: 274rpx;

			.month-right-title {
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				margin-bottom: 10rpx;
			}

			.month-right-content {
				.tip {
					text-align: center;
					color: #f1b6a8;
				}

				.month-right-content-dd {
					display: flex;
					flex-direction: row;
					justify-content: space-between;
					margin-bottom: 16rpx;

					.dd-icon {
						vertical-align: middle;

						.pay-icon {
							vertical-align: middle;
							margin-top: 6rpx;
						}
					}

					.dd-cont {
						display: flex;
						flex-direction: row;
						justify-content: space-between;
						line-height: 40rpx;

						.dd-cont-text {
							font-size: 28rpx;
							margin-right: 16rpx;
						}

						.dd-cont-text-day {
							font-size: 22rpx;
						}
					}
				}
			}
		}
	}
 */
	/* .payment-plate {
		margin-left: 30rpx;
		margin-right: 30rpx;
		border-radius: 10rpx;
		padding: 30rpx;
		background-color: #fff;
		margin-bottom: 20rpx;
		margin-top: 20rpx;

		.title-plate {
			font-size: 36rpx;
			font-weight: bold;
			margin-bottom: 20rpx;
		}

		.payment-plate-content {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			flex-wrap: wrap;

			.payment-plate-item {
				width: 50%;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				margin-bottom: 40rpx;

				.payment-item-right {
					margin-left: 20rpx;

					.item-right-title {
						font-size: 30rpx;
						font-weight: bold;
					}

					.item-right-subtitle {
						font-size: 26rpx;
						color: #C2C2C2;
					}
				}
			}

			.payment-plate-item:nth-child(3) {
				margin-bottom: 0;
			}

			.payment-plate-item:nth-child(4) {
				margin-bottom: 0;
			}
		}
	} */

	.month-plate {
		display: flex;
		gap: 20rpx;
		margin: 30rpx;

		.item {
			box-sizing: border-box;
			background: url(https://test8.w-run.net/iqiao/current_bg.png) no-repeat center / cover;
			height: 139.93rpx;
			flex: 1;
			display: flex;
			flex-direction: column;
			padding: 20rpx;
			border-radius: 16rpx;
			box-shadow: 6rpx 6rpx 20rpx rgba(0, 0, 0, 0.1);
			transition: .2s;

			&:active {
				filter: brightness(90%);
			}

			.box-header {
				display: flex;
				align-items: center;
				color: #926B32;
				font-size: 24rpx;

				.title {
					flex: 1;
					text-align: center;
					padding-left: 1.5em;
				}

				.arrow-right {
					opacity: .3;
					margin-top: 0px;
					font-size: 10px;
				}
			}

			.num {
				flex: 1;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 48.51rpx;
				color: #926B32;
				font-weight: bold;
			}
		}
	}

	.message-box {
		border: 1px solid #e7e7e7;
		border-radius: 16rpx;
		margin: 30rpx 30rpx 10rpx;
		padding: 10rpx 24rpx;

		.msg-list {
			padding-top: 1px;

			.msg-item {
				display: flex;
				align-items: center;
				font-size: 24rpx;
				color: #666;
				margin: 10rpx 0;

				.icon {
					margin-right: .75em;
				}

				.date {
					margin-left: 1em;
					color: #bbb;
				}
			}
		}
	}

	.store-plate {
		margin-left: 0;
		margin-right: 0;
		// background-color: #fff;
		padding: 20rpx 15px;
		border-radius: 10rpx;

		.title-plate {
			font-size: 36rpx;
			font-weight: bold;
			margin-bottom: 20rpx;
		}

		.zone-box {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			gap: 20rpx;

			.zone-item {
				flex: 1;
				position: relative;
				border-radius: 16rpx;
				overflow: hidden;
				box-shadow: 6rpx 6rpx 20rpx rgba(0, 0, 0, 0.08);
				height: 175rpx;
				transition: .2s;

				&:active {
					filter: brightness(90%);
				}

				.s_bg {
					width: 100%;
					height: 100%;
				}

				.zone-item-content {
					position: absolute;
					top: 30rpx;
					left: 30rpx;

					.zone-item-title {
						font-size: 30rpx;
						font-weight: bold;
						margin-top: 10rpx;
					}

					.zone-item-subtitle {
						font-size: 26rpx;
						margin-top: 10rpx;
					}
				}
			}
		}
	}

	.c-volume2 {
		margin-left: 30rpx;
		margin-right: 30rpx;
		margin-top: 20rpx;
		box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
	}

	.home-box {
		height: 100vh;
		background-color: #F4F6F6;
	}

	.head {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		width: 690rpx;
		margin-left: 30rpx;
		padding-top: 90rpx;
		margin-bottom: 40rpx;

		.head-name {
			font-size: 40rpx;
			font-weight: bold;
			margin-right: 20rpx;
		}

		.head-go {
			font-size: 28rpx;
			padding: 6rpx 16rpx;
			background-color: #EF684B;
			color: #fff;
			border-radius: 30rpx;
		}
	}
</style>